﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using OrganizedIN.DAL;
using OrganizedIN.BAL;
using OrganizedIN.BussinessServices;
using System.Data.SqlClient;
using Microsoft.ApplicationBlocks.Data;
using OrganizedIN.BAL.Common;
namespace OrganizedIN.UI.Document
{
    public partial class DocumentsHome : System.Web.UI.Page
    {
        BLL docfetchobj = new BLL();
        MyProfileDocument setdataobj=new MyProfileDocument();
        DataSet getdata = new DataSet();
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                DateTime dt = DateTime.Now;
                //lblusername.Text = Convert.ToString(Session["FName"]);
                //lblTodayDate.Text = String.Format("{0:D}", dt);
                lbltodaydate.Text = String.Format("{0:D}", dt);

                bindgrid();
            }
            catch (Exception ex)
            {
            }
        }
        private void bindgrid()
        {
            setdataobj.DocumentID=Session["UserID"].ToString();
            getdata = docfetchobj.ProfileDocument(setdataobj);
            if (getdata.Tables[0].Rows.Count > 0)
             {
               dgMyDocList.DataSource = getdata;
               dgMyDocList.DataBind();
             }
        }
    }
}
